Now that you’ve got all routines sorted out to pop up in the menu, and have all ‘;’ and ‘)’ and ‘{‘ and switches taken care of, it’s time to get it to compile in C.
In Think C, I use “Check Syntax” on the file, rather than “Run” or “Compile.” That way I don’t have to deal with the error window. No need to try to compile or run when you KNOW it won’t do either, at this point! The error window will only give you the first error anyway.
CTools™ only marks some things which the user may or may not want done a certain way. The first of these is “Includes:” - the carry-over from Pascals “Uses” line.
My KodeKeys macros can help, here. Hit ctrl-i for #include <.h> or ctrl-option-i for #include “.h”, then just paste in the name of the header included.
Add the appropriate include directives and comment out or cut out the “dead” code. Pascal includes (uses) some of its own source files. C does not usually do this. So, in the “.p” file, which once may have said “Uses MyMenus.p”, it does not, now, need “#include “MyMenus.p.c”. Dig? C only wants header data. If there is “header stock” in the “MyMenus.p.c” file that IS needed by another c. file, then cut it and put it in a seperate header.
For the rest of the file, you may want to consult the Pascal original for comparisons - especially if an omission is suspected. Also, compare forms of what’s translated to comparable things in working C sources. From that, a good “source detective” should be able to get a correct translation where CTools™ falls down.